//原型模式优化
function Person(name){}
Person.prototype={
    name:'keinvi',
    getName:function(){
        console.log(this.name)
    }
}
var person=new Person('wng');
console.log(person.getName())